package com.lkcg.demo.config.auditor;

import org.springframework.context.annotation.Configuration;

@Configuration
public class UserIDAuditorConfig {
    ThreadLocal<String> USER_ID = new ThreadLocal<>();

    public String getCurrentAuditor() {
        return USER_ID.get();
    }

    public void setCurrentAuditor(String userId) {
        USER_ID.set(userId);
    }
}
